package com.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.pojo.Goods;

import java.util.List;

public interface GoodsService {

    public void add(Goods goods);

    public Page<Goods> pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public void deleteById(Integer id);

    public void edit(Goods goods);

    public Goods findById(Integer id);

    public List<Goods> findAll();

    public Goods findGoodsName(String goodsname);

    public Page<Goods> goodsPage(Integer gid, Integer pagenum, Integer pagesize);

    Goods getGoods(int id);
}
